package org.example.ReflectDemo.lambda;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.function.BiConsumer;
import java.util.function.Consumer;

@FunctionalInterface
interface NoParameterNoRetuen {
    void test();
}
public class Test2 {
    public static void main(String[] args) {
        HashMap<Integer, String> map = new HashMap<>();
        map.put(1,"张三");
        map.put(2,"李四");
        map.put(3,"王五");
        map.put(4,"赵六");
        map.forEach((k,v)-> System.out.println(k+"="+v));
    }

}
